package com.example.furniture.dto;

import lombok.Data;

/**
 * 登录响应DTO（简化版）
 * 
 * @author 家具商城系统
 * @version 1.0
 * @since 2024-01-01
 */
@Data
public class LoginResponse {
    
    /**
     * 用户信息
     */
    private UserInfo user;
    
    /**
     * 用户信息内部类
     */
    @Data
    public static class UserInfo {
        private Long id;
        private String username;
        private String email;
        
        public UserInfo(Long id, String username, String email) {
            this.id = id;
            this.username = username;
            this.email = email;
        }
    }
    
    public LoginResponse(String accessToken, Long expiresIn, UserInfo user) {
        this.user = user;
    }
}
